package com.keymozy.state;

public enum Code {
    SUCCESS_LOGIN("0000","登录成功！"),
    SUCCESS_MENU_1("0001","菜单查询成功"),
    SUCCESS_STAFF_1("0002","员工查询成功"),
    SUCCESS_DEFT_1("0003","部门查询成功"),
    SUCCESS_POSITION_1("0004","职位查询成功"),
    SUCCESS_ADD_1("0005","添加成功！"),
    SUCCESS_DELETE_1("0007","删除成功！"),
    SUCCESS_UPDATE_1("0006","修改成功！"),
    SUCCESS_SEARCH("0008","查询成功!"),
    SUCCESS_RETURN("0010","归还成功!"),


    FALSE_RETURN("9992","归还失败！"),
    FALSE_SEARCH("9994","查询失败!"),
    FALSE_LOGIN("9999","登录失败！"),
    FALSE_ADD("9995","添加失败！"),
    FALSE_DELETE("9997","删除失败！"),
    FALSE_UPDATE("9996","修改失败!"),
    FALSE_MENU_1("9998","菜单加载失败！"),
    FALSE_BORROW("9993","借用失败!")
    ;
    private String code;
    private String msg;

    Code(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
